package domain;

public class SalesLineItem {
    private int quantity;
    private ProductDescription description;

    public SalesLineItem(ProductDescription desc, int quantity) {
        this.description = desc;
        this.quantity = quantity;
    }

    public Money getSubtotal() {
        return description.getPrice().times(quantity);
    }
}